package com.cd;

import com.cd.common.domain.SysUser;
import com.cd.common.dto.UserDto;
import com.cd.common.util.BeanUtils;

public class Main {
    public static void main(String[] args) {
        UserDto userDto=new UserDto();
        SysUser user=new SysUser();
        user.setUserName("lqq");
        BeanUtils.copyProperties(user,userDto);
        user.setNickName("lqqn");
        user.setUserName("lqq5");
        System.out.println(user);
        System.out.println(userDto);

    }
}
